package com.wms.service;

import com.wms.entity.Store;

import java.util.List;
import java.util.Map;

public interface StoreService {
    int addStore(Store store);

    List<Map<String,Map>> chaCk();

    List<Map<String,Map>> chaWq();

    // 仓库、库区多级列表
    List<Map<String, Object>> ckList();
    //2.0
    List<Map<String, Object>> getStoreTree();

    //3.0
    List<Store> getAllStores();
    List<Store> buildTree(List<Store> nodeList, Integer rootFId);
    // 递归查找并设置父节点的子节点
    void findChildren(Store parent, List<Store> nodeList);

    //删除仓库 如果没有子仓库
    int deleCkById(int id);



    List<Store> WXTree();
}
